home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsIX509CertValidity.h < prev   
C/C++ Source or Header  |  2006-05-08  |  8KB  |  219 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIX509CertValidity.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIX509CertValidity_h__
  6. #define __gen_nsIX509CertValidity_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIX509CertValidity */
  19. #define NS_IX509CERTVALIDITY_IID_STR "e701dfd8-1dd1-11b2-a172-ffa6cc6156ad"
  20.  
  21. #define NS_IX509CERTVALIDITY_IID \
  22.   {0xe701dfd8, 0x1dd1, 0x11b2, \
  23.     { 0xa1, 0x72, 0xff, 0xa6, 0xcc, 0x61, 0x56, 0xad }}
  24.  
  25. /**
  26.  * Information on the validity period of a X.509 certificate.
  27.  *
  28.  * @status FROZEN
  29.  */
  30. class NS_NO_VTABLE nsIX509CertValidity : public nsISupports {
  31.  public: 
  32.  
  33.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IX509CERTVALIDITY_IID)
  34.  
  35.   /**
  36.    *  The earliest point in time where
  37.    *  a certificate is valid.
  38.    */
  39.   /* readonly attribute PRTime notBefore; */
  40.   NS_IMETHOD GetNotBefore(PRTime *aNotBefore) = 0;
  41.  
  42.   /**
  43.    *  "notBefore" attribute formatted as a time string
  44.    *  according to the environment locale,
  45.    *  according to the environment time zone.
  46.    */
  47.   /* readonly attribute AString notBeforeLocalTime; */
  48.   NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) = 0;
  49.  
  50.   /**
  51.    *  The day portion of "notBefore" 
  52.    *  formatted as a time string
  53.    *  according to the environment locale,
  54.    *  according to the environment time zone.
  55.    */
  56.   /* readonly attribute AString notBeforeLocalDay; */
  57.   NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) = 0;
  58.  
  59.   /**
  60.    *  "notBefore" attribute formatted as a string
  61.    *  according to the environment locale,
  62.    *  displayed as GMT / UTC.
  63.    */
  64.   /* readonly attribute AString notBeforeGMT; */
  65.   NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) = 0;
  66.  
  67.   /**
  68.    *  The latest point in time where
  69.    *  a certificate is valid.
  70.    */
  71.   /* readonly attribute PRTime notAfter; */
  72.   NS_IMETHOD GetNotAfter(PRTime *aNotAfter) = 0;
  73.  
  74.   /**
  75.    *  "notAfter" attribute formatted as a time string
  76.    *  according to the environment locale,
  77.    *  according to the environment time zone.
  78.    */
  79.   /* readonly attribute AString notAfterLocalTime; */
  80.   NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) = 0;
  81.  
  82.   /**
  83.    *  The day portion of "notAfter" 
  84.    *  formatted as a time string
  85.    *  according to the environment locale,
  86.    *  according to the environment time zone.
  87.    */
  88.   /* readonly attribute AString notAfterLocalDay; */
  89.   NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) = 0;
  90.  
  91.   /**
  92.    *  "notAfter" attribute formatted as a time string
  93.    *  according to the environment locale,
  94.    *  displayed as GMT / UTC.
  95.    */
  96.   /* readonly attribute AString notAfterGMT; */
  97.   NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) = 0;
  98.  
  99. };
  100.  
  101. /* Use this macro when declaring classes that implement this interface. */
  102. #define NS_DECL_NSIX509CERTVALIDITY \
  103.   NS_IMETHOD GetNotBefore(PRTime *aNotBefore); \
  104.   NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime); \
  105.   NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay); \
  106.   NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT); \
  107.   NS_IMETHOD GetNotAfter(PRTime *aNotAfter); \
  108.   NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime); \
  109.   NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay); \
  110.   NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT); 
  111.  
  112. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  113. #define NS_FORWARD_NSIX509CERTVALIDITY(_to) \
  114.   NS_IMETHOD GetNotBefore(PRTime *aNotBefore) { return _to GetNotBefore(aNotBefore); } \
  115.   NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) { return _to GetNotBeforeLocalTime(aNotBeforeLocalTime); } \
  116.   NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) { return _to GetNotBeforeLocalDay(aNotBeforeLocalDay); } \
  117.   NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) { return _to GetNotBeforeGMT(aNotBeforeGMT); } \
  118.   NS_IMETHOD GetNotAfter(PRTime *aNotAfter) { return _to GetNotAfter(aNotAfter); } \
  119.   NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) { return _to GetNotAfterLocalTime(aNotAfterLocalTime); } \
  120.   NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) { return _to GetNotAfterLocalDay(aNotAfterLocalDay); } \
  121.   NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) { return _to GetNotAfterGMT(aNotAfterGMT); } 
  122.  
  123. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  124. #define NS_FORWARD_SAFE_NSIX509CERTVALIDITY(_to) \
  125.   NS_IMETHOD GetNotBefore(PRTime *aNotBefore) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBefore(aNotBefore); } \
  126.   NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeLocalTime(aNotBeforeLocalTime); } \
  127.   NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeLocalDay(aNotBeforeLocalDay); } \
  128.   NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeGMT(aNotBeforeGMT); } \
  129.   NS_IMETHOD GetNotAfter(PRTime *aNotAfter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfter(aNotAfter); } \
  130.   NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterLocalTime(aNotAfterLocalTime); } \
  131.   NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterLocalDay(aNotAfterLocalDay); } \
  132.   NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterGMT(aNotAfterGMT); } 
  133.  
  134. #if 0
  135. /* Use the code below as a template for the implementation class for this interface. */
  136.  
  137. /* Header file */
  138. class nsX509CertValidity : public nsIX509CertValidity
  139. {
  140. public:
  141.   NS_DECL_ISUPPORTS
  142.   NS_DECL_NSIX509CERTVALIDITY
  143.  
  144.   nsX509CertValidity();
  145.  
  146. private:
  147.   ~nsX509CertValidity();
  148.  
  149. protected:
  150.   /* additional members */
  151. };
  152.  
  153. /* Implementation file */
  154. NS_IMPL_ISUPPORTS1(nsX509CertValidity, nsIX509CertValidity)
  155.  
  156. nsX509CertValidity::nsX509CertValidity()
  157. {
  158.   /* member initializers and constructor code */
  159. }
  160.  
  161. nsX509CertValidity::~nsX509CertValidity()
  162. {
  163.   /* destructor code */
  164. }
  165.  
  166. /* readonly attribute PRTime notBefore; */
  167. NS_IMETHODIMP nsX509CertValidity::GetNotBefore(PRTime *aNotBefore)
  168. {
  169.     return NS_ERROR_NOT_IMPLEMENTED;
  170. }
  171.  
  172. /* readonly attribute AString notBeforeLocalTime; */
  173. NS_IMETHODIMP nsX509CertValidity::GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime)
  174. {
  175.     return NS_ERROR_NOT_IMPLEMENTED;
  176. }
  177.  
  178. /* readonly attribute AString notBeforeLocalDay; */
  179. NS_IMETHODIMP nsX509CertValidity::GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay)
  180. {
  181.     return NS_ERROR_NOT_IMPLEMENTED;
  182. }
  183.  
  184. /* readonly attribute AString notBeforeGMT; */
  185. NS_IMETHODIMP nsX509CertValidity::GetNotBeforeGMT(nsAString & aNotBeforeGMT)
  186. {
  187.     return NS_ERROR_NOT_IMPLEMENTED;
  188. }
  189.  
  190. /* readonly attribute PRTime notAfter; */
  191. NS_IMETHODIMP nsX509CertValidity::GetNotAfter(PRTime *aNotAfter)
  192. {
  193.     return NS_ERROR_NOT_IMPLEMENTED;
  194. }
  195.  
  196. /* readonly attribute AString notAfterLocalTime; */
  197. NS_IMETHODIMP nsX509CertValidity::GetNotAfterLocalTime(nsAString & aNotAfterLocalTime)
  198. {
  199.     return NS_ERROR_NOT_IMPLEMENTED;
  200. }
  201.  
  202. /* readonly attribute AString notAfterLocalDay; */
  203. NS_IMETHODIMP nsX509CertValidity::GetNotAfterLocalDay(nsAString & aNotAfterLocalDay)
  204. {
  205.     return NS_ERROR_NOT_IMPLEMENTED;
  206. }
  207.  
  208. /* readonly attribute AString notAfterGMT; */
  209. NS_IMETHODIMP nsX509CertValidity::GetNotAfterGMT(nsAString & aNotAfterGMT)
  210. {
  211.     return NS_ERROR_NOT_IMPLEMENTED;
  212. }
  213.  
  214. /* End of implementation class template. */
  215. #endif
  216.  
  217.  
  218. #endif /* __gen_nsIX509CertValidity_h__ */
  219.